package org.opicasso.cheese.ui.components;

import java.text.SimpleDateFormat;
import java.util.Date;

import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.Model;

public class CurrentDateLabel extends Label {

	private static final long serialVersionUID = -6479176898278078908L;

	public CurrentDateLabel(String id) {
		super(id, new Model() {
			private static final long serialVersionUID = 9101843453654256726L;

			@Override
			public Object getObject() {
				return new SimpleDateFormat("hh:mm:ss").format(new Date());
			}
			
		});
	}

}
